/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */
export default {
  dev: {
    '/api/': {
      //target: 'http://localhost:8081',
      target: 'http://127.0.0.1:9527',
      changeOrigin: true,
      // pathRewrite: {
      //   '^/api/': '',
      // },
    },
    // websocket
    '/wsmanage': {
      target: 'http://localhost:8088/',
      ws: true, // 支持websokcet
      changeOrigin: true,
      pathRewrite: {
        '^/wsmanage': '/'
      }
    },
  },
  test: {
    '/api/': {
      target: 'http://123.57.129.47:8001',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
  },
  pre: {
    '/api/': {
      target: 'http://123.57.129.47:8001',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
  },
};
